package com.lam.dormitory.service.impl;

import com.lam.dormitory.entity.Dormitory;
import com.lam.dormitory.entity.Student;
import com.lam.dormitory.mapper.StudentMapper;
import com.lam.dormitory.service.IStudentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lam.dormitory.vo.StudentVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lam
 * @since 2019-12-26
 */
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements IStudentService {

    @Override
    public List<StudentVo> selectByStudent(Student student) {
        return this.baseMapper.selectByStudent(student);
    }

    @Override
    public List<Student> selectByRoleId(Long roleId) {
        return this.baseMapper.selectByRoleId(roleId);
    }

    @Override
    public List<Student> selectMajor() {
        return this.baseMapper.selectMajor();
    }
}
